<?php
require_once 'MyPdoCounty.class.php';
class TableShopFreeOrderUser extends MyPdoCounty{
	private $tableName = 'shop_free_order_user';

	//添加砍价定单帮砍用户信息
	function _FreeOrderUserAdd($free_order_id,$openid,$name,$header,$price){
		$sql = "insert ignore into {$this->tableName}(free_order_id,openid,name,header,price,ftime) values(?,?,?,?,?,?)";
		return $this->dml($sql,array($free_order_id,$openid,$name,$header,$price,time()));
	}


	//获取指定订单的帮砍用户信息
	function _getFreeOrderUser($free_order_id){
		$sql = "select name,header,price,ftime from {$this->tableName} where free_order_id = ?";
		return $this->dql($sql,array($free_order_id));

	}
}
